﻿using System;

namespace SimbaRGVMonitor.Controllers
{
    class MonitorTcpAgentMessageReceivedEventArgs : EventArgs
    {
        public MonitorTcpAgentMessageReceivedEventArgs(DateTime receiveTime, string message)
        {
            this.message = message;
            this.receiveTime = receiveTime;
        }

        //====================================================================================================
        //以上是类型构造函数
        //----------------------------------------------------------------------------------------------------
        //以下是类型字段
        //====================================================================================================

        private readonly string message;
        private readonly DateTime receiveTime;

        //====================================================================================================
        //以上是类型字段
        //----------------------------------------------------------------------------------------------------
        //以下是类型属性
        //====================================================================================================

        public string Message
        {
            get { return message; }
        }
        
        public DateTime ReceiveTime
        {
            get { return receiveTime; }
        }
    }
}
